package com.pan.note.enumerate;

import lombok.Getter;

@Getter
public enum MsgEnum {
    /**
     * 返回结果枚举，每个枚举代表着一个状态
     */
    SUCCESS(200, "操作成功！"),
    ERROR(400, "操作失败！"),
    ;

    private Integer code;
    private String msg;

    MsgEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
